<?php

namespace app\admin\validate;

use think\Validate;

class User extends Validate
{

    // 验证规则
    protected $rule = [
        'name' => ['require', 'min' => 2, 'max' => 25]

    ];


    // 提示信息
    protected $message = [
        'name.require' => '用户名必须填写!!!!!',
        'name.min' => '用户名过短',
        'name.max' => '用户名过长',

    ];


}




